package com.lcz.authority.common.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhou.starter.jpacomment.annotation.ColumnComment;
import com.zhou.starter.jpacomment.annotation.TableComment;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author lcz
 * @desc 角色和部门关联 sys_role_dept
 * @mail lcz_0130@163.com
 * @date 2024/06/17
 */
@Data
@TableName("sys_role_dept")
@Table(name = "sys_role_dept")
@Entity
@TableComment("角色和部门关联表")
public class SysRoleDeptEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @TableId(type = IdType.ASSIGN_ID)
    @ColumnComment("ID")
    private Long id;

    /**
     * 角色ID
     */
    @ColumnComment("角色ID")
    private Long roleId;

    /**
     * 部门ID
     */
    @ColumnComment("部门ID")
    private Long deptId;
}
